package com.study.springsecurity.constant;

import lombok.Getter;
import lombok.experimental.Accessors;

/**
 * 错误码定义
 *
 * @Author YL
 * @Create 2024/4/4 1:02
 * @Version 1.0
 */
@Getter
@Accessors(fluent = true)
public enum ErrorCode {
    E000000("E000000","请求成功"),
    E000001("E000001","无权限访问"),
    E000002("E000002","账号密码错误"),
    E000003("E000003","用户未登录"),
    E000004("E000004","验证码错误");

    private String code;

    private String msg;

    ErrorCode(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

}
